package com.example.cms.service.Impl;

import com.example.cms.dao.QuestionnairedDao;
import com.example.cms.entity.Questionnaired;
import com.example.cms.service.QuestionnairedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("QuestionnairedService")
@Transactional
public class QuestionnairedServiceImpl implements QuestionnairedService {

    @Autowired
    private QuestionnairedDao questionnairedDao;

    @Override
    public List<Questionnaired> getAllQues() {
        return questionnairedDao.selectAllQuestion();
    }
}
